<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($GLOBALS['PAD']."Modules/FJK46JDE/modconf.php");
MYDCONN();

	$GET = $GLOBALS['MYD']->db_array("SELECT smb_ID, smb_Name, smb_CODE, main_offices.name, smb_Domain, smb_CttEmail 
		FROM staff_members 
		INNER JOIN main_users ON StaffMember = smb_ID
		INNER JOIN main_offices ON main_offices.ref = ref_office
		WHERE smb_ID = {$_GET['SMID']}");
	mn_field('hidden','ED','MemberID',$GET[1]['smb_ID'],'','','','');
	mn_field('hidden','ED','MemberDomain',$GET[1]['smb_Domain'],'','','','');
	echo '<div class="title">Dados do Funcionario | ';
		mn_field('button','ED','sm_ChangeMember','Escolher Outro','','','','" onclick="
			replaceUrl(\'SelcMember\',\''.$MODURL.'Lib/sel_memberrsm.php\');');
	echo '</div>
	<table>
	<tr>
		<td>Nome:</td>
		<td>'.$GET[1]['smb_Name'].'</td>
	</tr>
	<tr>
		<td>N&uacute;mero:</td>
		<td>'.$GET[1]['smb_CODE'].'</td>
	</tr>
	<tr>
		<td>Loja:</td>
		<td>'.$GET[1]['name'].'</td>
	</tr>
	<tr>
		<td>Email:</td>
		<td>'.$GET[1]['smb_CttEmail'].'</td>
	</tr>
	</table>';